package com.jvtd.eyl.bean.binding;

import android.databinding.BaseObservable;
import android.databinding.Bindable;

import com.google.gson.annotations.SerializedName;
import com.jvtd.eyl.BR;
/**
 * 浏览信息实体
 *
 * 作者:chenlei
 * 时间:2018/11/14 9:36 AM
 */
public class BrowseBean extends BaseObservable {
    /**
     * id : 3
     * user_id : 1
     * periodical_id : 3
     * documentperiodical :
     */

    private String id;//浏览记录ID
    private String user_id;//浏览用户ID
    private String periodical_id;//期刊ID
    private BookBean documentperiodical;//书籍信息
    @SerializedName("updated_at")
    private String time;//浏览时间

    @Bindable
    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
        notifyPropertyChanged(BR.time);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getPeriodical_id() {
        return periodical_id;
    }

    public void setPeriodical_id(String periodical_id) {
        this.periodical_id = periodical_id;
    }

    public BookBean getDocumentperiodical() {
        return documentperiodical;
    }

    public void setDocumentperiodical(BookBean documentperiodical) {
        this.documentperiodical = documentperiodical;
    }

    @Override
    public String toString() {
        return "BrowseBean{" +
                "id='" + id + '\'' +
                ", user_id='" + user_id + '\'' +
                ", periodical_id='" + periodical_id + '\'' +
                ", documentperiodical=" + documentperiodical +
                ", time='" + time + '\'' +
                '}';
    }
}
